<template>
  <div>
    <div class="nav2">
      <ul>
        <li>全城<i class="iconfont icon-xiala"></i></li>
        <li>品牌<i class="iconfont icon-xiala"></i></li>
        <li>特色<i class="iconfont icon-xiala"></i></li>
      </ul>
    </div>
    <div class="cinema-list">
      <div class="list-wrap">
        <div v-html="yingyuan"></div>
      </div>
    </div>
  </div>
</template>

<script>
// 1.引入axios
import axios from "axios";

export default {
  name: "Yingyuan",
  // 2.定义变量
  data: function () {
    return {
      yingyuan: "", //接收从后台传过来的字符串
    };
  },
  //在钩子函数中获取数据
  // 加载完成之前
  created() {
    axios
      .get(
        "/ajax/moreCinemas?day=2021-09-25&offset=0&limit=20&districtId=-1&lineId=-1&hallType=-1&brandId=-1&serviceId=-1&areaId=-1&stationId=-1&item=&updateShowDay=true&reqId=1632501694166&cityId=57&optimus_uuid=C1EFDBF01D3F11EC82ED5D1D4E2852687CAF41FEAC724D7AAB5A1E5B2BAE1A5D&optimus_risk_level=71&optimus_code=10"
      )
      .then((res) => {
        console.log(res.data);
        this.yingyuan = res.data;
      });
  },
  beforeMount() {},
  mounted() {},
};
</script>

<style >
body {
  font-family: PingFangSC-Regular, Hiragino Sans GB, sans-serif;
  -webkit-touch-callout: inherit;

  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  font-size: 14px;
  color: #777;
}
* {
  margin: 0;
  padding: 0;
}
a {
  text-decoration: none;
  cursor: pointer;
  background-color: transparent;
}
ul,
li {
  list-style: none;
}
a,
img {
  display: block;
}
::-webkit-scrollbar {
  height: 0 !important;
}
 .nav2,
 .nav2 ul {
  box-sizing: border-box;
  padding: 9px 0 10px 0px;
  background: #fff;
  width: 100%;
  height: 38px;
  line-height: 34px;
  display: flex;
  text-align: center;

  border-bottom: 1px solid #ccc;
}
 .nav2 ul li {
  /* border: 1px solid red; */
  margin-top: -13px;
  width: 125px;
  height: 30px;
  /* border: 1px solid red; */
  font-size: 14px;
  color: #666;
  border-right: 1px solid #ccc;
}
 .nav2 ul li:nth-of-type(3) {
  border-right: 0;
}
 .nav2 ul li .iconfont {
  font-size: 4px;
  margin-left: 4px;
}
.cinema-list {
  border-top:1px solid #ccc;
  box-sizing: border-box;

  overflow: auto;
  width: 100%;
  height: 410px;

  background: #fff;
  
}
.cinema-list .list-wrap .item {
  padding: 13px 15px 13px 0;
  margin-left: 15px;
  background-color: #fff;
  position: relative;
  overflow: hidden;
}
@media (-webkit-min-device-pixel-ratio: 2),
  (-webkit-min-device-pixel-ratio: 3) {
  .mb-line-all,
  .mb-line-b,
  .mb-line-l,
  .mb-line-lr,
  .mb-line-r,
  .mb-line-t,
  .mb-line-tb,
  .mb-outline-b,
  .mb-outline-t,
  .mb-outline-tb {
    background-size: 1px 1px;
  }
}

.mb-line-b {
  background: url()
    0 bottom repeat-x;
}
.cinema-list .list-wrap .title-block {
  display: block;
}
.box-flex:not(.column).middle,
.inline-flex:not(.column).middle {
  -webkit-box-align: center;
  align-items: center;
}
.cinema-list .location-block,
.cinema-list .price-block,
.cinema-list .title-block {
  line-height: 1.5;
}
.cinema-list .list-wrap .title-block .title {
  height: 23px;
  line-height: 23px;
  font-size: 16px;
  color: #000;
}

.line-ellipsis {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.cinema-list .list-wrap .price-block {
  padding-top: 9px;
  padding-left: 3px;
}

.cinema-list .list-wrap .price-block .price {
  margin-left: 10px;
  font-size: 18px;
}
.cinema-list .list-wrap .price-block .d,
.cinema-list .list-wrap .price-block .price,
.cinema-list .list-wrap .price-block .q {
  color: #f03d37;
}

.cinema-list .list-wrap .price-block .q {
  margin-left: 3px;
}
.cinema-list .list-wrap .price-block .d,
.cinema-list .list-wrap .price-block .price,
.cinema-list .list-wrap .price-block .q {
  font-size: 11px;
  color: #f03d37;
}

.cinema-list .list-wrap .price-block {
  padding-top: 9px;
  padding-left: 3px;
}
.cinema-list .list-wrap .location-block {
  margin-top: 6px;
  font-size: 13px;
  color: #666;
}
.flex {
  -webkit-box-flex: 1;
  flex: 1;
}
.cinema-list .list-wrap .location-block .distance,
.cinema-list .list-wrap .location-block .region {
  margin-left: 5px;
}

.cinema-list .list-wrap .title-block .label-block {
  height: 17px;
  line-height: 17px;
  margin-top: 4px;
  margin-bottom: 4px;
  /* background: red; */

  flex-shrink: 0;
}
.cinema-list .list-wrap .title-block .label-block div.allowRefund,
.cinema-list .list-wrap .title-block .label-block div.endorse,
.cinema-list .list-wrap .title-block .label-block div.hallType,
.cinema-list .list-wrap .title-block .label-block div.sell {
  font-size: 12px;
  color: #589daf;
  border: 1px solid #589daf;
}
.cinema-list .list-wrap .title-block .label-block > div {
  position: relative;
  display: inline-block;
  padding: 0 3px;
  font-size: 12px;
  height: 15px;
  line-height: 15px;
  border-radius: 2px;
  font-size: 0.6rem;
}
.cinema-list .list-wrap .title-block .label-block div.snack,
.cinema-list .list-wrap .title-block .label-block div.vipTag {
  font-size: 12px;
  color: #f90;
  border: 1px solid #f90;
}
.cinema-list .list-wrap .title-block .label-block > div + div {
  margin-left: 5px;
}
.cinema-list .list-wrap .title-block .label-block {
  height: 17px;

  margin-top: 4px;
  margin-bottom: 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.cinema-list .discount-block {
  color: #999;
  margin-bottom: 4px;
}
.cinema-list .discount-block .discount-label {
  width: 15px;
  height: 14px;
  position: relative;
  top: 3px;
}
.cinema-list .discount-block .discount-label:before {
  display: none;
}
.discount-label.normal:before {
  background-image: url();
}
.discount-label:before {
  content: "";
  display: block;
  width: 8px;
  background-size: contain;
  background-repeat: no-repeat;

  transform: translateX(2px);
}
.cinema-list .discount-block .discount-label-text {
  position: relative;
  top: -13px;
  left: 20px;
  display: inline-block;
  height: 14px;
  font-size: 11px;
}
.cinema-list .discount-block {
  color: #999;
  margin-bottom: 4px;
}
.cinema-list .discount-block .discount-label img {
  position: relative;
  width: 14px;
  height: 15px;
}
.location-block div {
  display: inline-block;
  width: 233.5px;
}
.location-block .distance {
  top: -5px;
  position: relative;
  display: inline-block;
  width: 37px;
}
.discount-block {
  /* background: red; */
  box-sizing: border-box;
  height: 20px;
}
.cinema-list .list-wrap .price-block .price {
  font-size: 18px;
}
</style>